package com.dz.lm.dao.log.write;

import com.dz.lm.common.exception.DaoException;
import com.dz.lm.common.utils.stereotype.WriterRepository;
import com.dz.lm.domain.log.LoginLog;
import com.dz.lm.domain.user.AccessToken;

@WriterRepository("writeLoginLogDao")
public interface LoginLogDao{
	/**
	 * 新增登录日志
	 */
    int addLoginLog(LoginLog log) throws DaoException;
	/**
	 * 新增token记录
	 */
    int addAccessToken(AccessToken token) throws DaoException;
	/**
	 * 修改token记录
	 */
    int updateAccessToken(AccessToken token) throws DaoException;
}